package com.bosssoft.user.permission.center.serve.pojo.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import common.data.base.BaseVO;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * @className: SubSystemVO
 * @description: 传回前端子系统信息
 * @author: lanyukai
 * @date: 2024/6/12 16:37
 * @since 1.0
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("传回前端的子系统信息")
public class SubSystemVO extends BaseVO {
    /**
     * 子系统id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private long id;
    /**
     * 子系统名称
     */
    @NotBlank(message = "子系统名称不可为空")
    private String name;
    /**
     * 子系统编码
     */
    @NotBlank(message = "子系统编码不可为空")
    private String code;
    /**
     * 子系统图标
     */
    private String imageUrl;

    /**
     * 子系统链接
     */
    private String link;
    /**
     * 子系统备注
     */
    private String remark;
}
